package org.sy.lab.Java7并发编程实战.二线程同步基础.三在同步代码中使用条件;

public class Consumer  implements Runnable {
	private EventStorage storage;
	public Consumer(EventStorage storage) {
		this.storage = storage;
	}
	@Override
	public void run() {
		for(int i=0; i<100; i++) {
			storage.get();
		}
	}
}
